package edu.utility.Entities;
public class User {
	
	private int Id;
	private String email;
	private String password;
	private int port;
	private String IPAddress;
	private int streamMovies;
	private int streamAudio;
	private int streamPictures;
	private int videoQuality;
	public User(){}
	public User(String email, String password){
		this.email = email;
		this.password = password;
	}
	public boolean isStreamMovies() {
		return streamMovies == 1;
	}
	public void setStreamMovies(int streamMovies) {
		this.streamMovies = streamMovies;
	}
	public boolean isStreamAudio() {
		return streamAudio ==1;
	}
	public void setStreamAudio(int steamAudio) {
		this.streamAudio = steamAudio;
	}
	public boolean isStreamPictures() {
		return streamPictures == 1;
	}
	public void setStreamPictures(int streamPictures) {
		this.streamPictures = streamPictures;
	}
	public int getVideoQuality() {
		return videoQuality;
	}
	public void setVideoQuality(int videoQuality) {
		this.videoQuality = videoQuality;
	}
	public String getUserName() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getEmail(){
		return email;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public int getPort() {
		return port;
	}
	public void setPort(int port) {
		this.port = port;
	}
	public String getIPAddress() {
		return IPAddress;
	}
	public void setIPAddress(String iPAddress) {
		IPAddress = iPAddress;
	}
	public int getId() {
		return Id;
	}
	public void setId(int id) {
		Id = id;
	}
	
	public String toString(){
		return "" + Id + "," + email + "," + password + "," + port + "," + IPAddress;
	}

}
